package tech.aistar.day05.homework;

import java.util.Date;

/**
 * 本类用来演示:
 *
 * @author: success
 * @date: 2022/7/25 9:01 上午
 */
public class SalariedEmployee extends Employee{
    private double baseSalary;//固定薪资

    public SalariedEmployee() {
    }

    public SalariedEmployee(String name, Date birthday, double baseSalary) {
        super(name, birthday);
        this.baseSalary = baseSalary;
    }

    @Override
    public double getSalary(int month) {
        return super.getSalary(month)+baseSalary;
    }
}
